﻿using Gasgoo.ShareLibrary.Framework.ServiceDefine;
using System.Collections.Concurrent;
using System.Threading.Tasks;

namespace Gasgoo.ShareLibrary.Framework.iCacheProvider
{
    public interface IHashProvider : GasgooServiceWithStringKey
    {
        Task<ConcurrentDictionary<string, string>> GetAsync();
        Task<string> GetAsync(string field);
        Task SetAsync(string field, string payload);
        Task RemoveAsync(string field);
        Task RemoveAsync();
    }
}
